#apacheAdapter.py
#to deploy under apache mod_wsgi

import os, sys
sys.path.append(os.path.split(os.path.abspath(__file__))[0])

from wsgiapp import BaseWsgiApp
 
class MyApp(BaseWsgiApp):
    def index(self):
        self.start_response('200 OK', [('Content-Type', 'text/plain')])
        return ['Hello, World!']

    def greet(self, who = "Nobody"):
        self.start_response('200 OK', [('Content-Type', 'text/plain')])
        return ["Hi, ", who, "!"]

application = MyApp()
